I was just going to recommend SMART. I used it in treating my addiction as well as dealing with the addicts in my life. The ABC tool was especially useful. Find out what irritates you and realize you can't do anything about their actions. You can control yours.
In my case I had to break off a very close friendship with my sister after over 30 years. She was coming home high off something or other and became emotionally, physically and mentally abusive. It still pains me to be out of contact with her but I don't have a choice-not if I want to stay sane.