Pls someone give some advice on some good ways to spend time by yourself and keep your mind off being by yourself with no friends. Appreciate any tips :)
Gaming, gym, work/making money, cooking, studying/learning, reading, media(tv etc), listening to music/youtubers/streamers.
You can learn to accept loneliness so that fixing it is no longer a priority. Redefine your parameters on what's acceptable and not. You can still have online friends etc and get through loneliness that way. If you're unable to keep or interact with friends, perhaps listening to someone on twitch or youtube, the constant narration can help with loneliness. Same for the voice that accompanies music.
If lack of partner is a reason to feel lonely and you don't hang out with anyone as a friend, I would recommend listening to someone that is opposite of your sexual attraction if you're not bi or asexual, because otherwise voice can remind you that you don't have somebody.
If you are gaming, working out, making money, learning, reading, watching & listening to media, that can also distract you from ever worrying or caring about loneliness, since all of those things are enjoyable on your own.
As a person with no family(NC-all), no partner and no close friends I can say it works for me. I don't feel loneliness in a significant or depressing capacity anymore. No idea whether anti-depressants also help with that or not.