Your friend wasn't remotely empathetic towards the damage and pain your suicide would cause, it ripples out (and is contagious too). You are a smart, good bro, don't ever take that step, because life means possibilities and you have the capacity to make positive changes. Once things have gotten as bad as they can, then all that can come next is better.
As
@Mitchlowkey said, CBT & well-managed psych medication, as well as, if able, maintaining a structured physical activity (nothing better than planned, progressive overload resistance training & making measurable progress) is foundational. Of course, certain events can unfold that make this training impossible (forced time off due to illness, injury, or pandemic, etc.) Don't catastrophize about this. In a depressed state, the things that are best for us are become those that we least want to do, and the depressed person can be plagued by irrational cognitive processes and patterns of thinking (e.g., sunk cost fallacies, abstinence violation effects, etc.) CBT would get you "back on the wagon" in such crises.
I don't think death is lights out, either.