I'm not sure how good this advice actually is in the long run for recovery but its helped me a lot of times to ease off the incredibly strong anxiety filled suicidal thoughts that occur so I hope it can maybe be a little bit of help.
I tend to just accept it, I'll accept suicide as an option and just think about it as an option surrounding every single negative thing in my life as an example:
working for the rest of my life? Well I could just quit it enjoy my life until the money runs out and end it. etc.
Making the option of suicide casual in my mind has helped me a lot with being able to just calm down the thoughts and their intensity as for me when I get those thoughts its usually a race against time, if I can survive until the thoughts go away I am usually able to go back to a life I am atleast somewhat content with trying to live. It has made going through shitty situations easier to handle as well as if I truly feel *done* with trying I can at any moment I choose simply end it all, It also completely destroys a lot of other sources for any anxiety related thoughts as I can literally just tell myself "Well whats the worst that could happen? Death?" since death is something thats looked at with positivity.
As a side effect it's also made me able to explore passions and relationships more through bypassing the original anxiety that kept me from trying in the first place.
But at the same time I am not exactly moving on from the thought of death as the longing for it still exists.