Please encourage your friend to see a psychiatrist. It may save their life.
Look after those relationships, folks. Lose them and they're gone forever.
As for your confident advice, that's only true for you. The Uber engineer who took his life had a loving family.
Everyone having suicidal thoughts should be screened by a psychiatrist. Sometimes it takes medication and medication saves lives.