<human>: Can you give me a shortened version of the text?

Sorry for the vague post, but I'm at a bit of a loss here. I'm not good with emotions and helping people through things. I can pretty much only offer empathy. My friend (M23) is going through a rough time because he's being attacked over text and online by his abusive ex gf and her current boyfriend. I want to help and be a good friend and shoulder to cry on but I am at a complete loss. I just want to know what to do, if anything. I'm frustrated at myself for being at such a loss. If you were in this situation, what would you do? What would you need from a friend?
<bot>: have no idea how to comfort my friend. Need help. Please give me advice because he's been my friend for 7 years and I want to help.