Getting over old friendships

So about 2 years ago I had 2 best friends. And we had been friends for 5 ish years. They were shitty friends who stole from me, tried to get me to do drugs with them, was jealous of my boyfriend, but I still loved them as they were my only friends and I didn’t see all these qualities when we were still friends. Anyways, some drama went down between me and one of the friends and they both decided they were going to cut me out and they both blocked me on everything and I never saw them again. Now I don’t still want to be friends with them, but this really hurt me in the moment. I tried on countless times to apologize via this other friend but when she stopped talking to me too I had no way to get into contact with either of them. I’m over it now, but I still see them in my dreams a lot. I never think about them when i’m awake but I dream about them quite a bit. I think it’s just because we never had closure. Does anyone have any advice on what I should do to get over them once and for all??