What do you tell people that rant to you?

I suck at giving advice and don’t know how to help make someone feel better when they tell me their problems. Advice?