What you discribe is a suicide intention.
What you might need is distress tolerence skills
I use them myself, I know you feel and it can be hard to refocus and come out of the dark thoughts. I have copied some links for you. Practice this skills everyday. Even when you are feeling good, so they become 2nd nature when you really need them..
www.goodtherapy.org/blog/distress-tolerance-dialectical-behavior-therapy-0117134dbtskillsgroups.com/GroupTherapy/distress-tolerance/Remember, you are not alone, lots of folks feel what you feel. Connecting with them will give you strength.
Peace
Trina