If my friend was depressed or had an eating disorder. First, I would ask them how they ended up like that. Second, I would try would always stay in contact with them or there parents to ask if they are okay. Third, I would bring my friend to a therapist or an adult we can trust and talk about the things that happened and try to get over the problems.
I hope this helps!