HELP!!!! (Trigger warning: starvation)

How do you help someone stop starving themselves (my friend has been starving themselves and is in the fetal position crying from pain and I need to know how to help them ASAP!)