Time is really the only thing, friends help a lot but they can't be with you 24/7. It's gonna be hard when you're alone but try and keep yourself busy. Took me a year and a few months to get over it. The first 2 months after the break up I kept trying to get her back. I've been suffering from depression and anxiety for years and it started affecting our relationship. I became super insecure, and with that comes jealousy, and with jealousy comes controlling issues. I never physically abused her but emotionally, yea, I got pretty bad. After the two months of trying to get her back, I started self loathing, and felt like complete shit for how I treated her. All that led to alcohol and it got pretty bad for about a month and a half. After realizing being self destructive wasn't helping, I fully acknowledged my depression (didn't fully, before) and started to really work on that. Looking back to where I was at that time after the break up and where I am now, I can't help but be proud of myself. I'll always love her but if she came back to me today, I wouldn't do it. At least not right now. I'm grateful for all the memories we've had together, good and bad, and everything else post break up. I grew and learned from it and have gotten to know more about myself. I still have trouble opening up to women fully, but I'll get there eventually. Have met a few potential girlfriends but I just can't fully commit. Right now I'm completely content on just having flings but I know I'll eventually want something serious and real.
Take your time OP. Don't avoid being alone by yourself; those are the hardest moments but I feel like they're also crucial. Spend time alone and learn more about yourself. Traveling helped me, and I'd suggest it. You won't realize how strong you can be until you have to be.