If it was me I would: Start by briefly explaining your circumstances at the time and then mention how you have changed your life around. Conclude on how you old life is having an impact on your present and how you wish you could change it but as you can't how you can be certain never to end up there again (with examples). Nobody can write this letter for you and if they do it will look like a counsellor wrote it rather than yourself.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.