Let them cry and rant as long as they need to. Your friend is relying on you to be there for them in their time of need, so do not push them to finish quickly. No matter how long it takes for them to finish crying, be there the entire time, and be patient!