This goes for coping with a lot of executive function problems and disorders.
Part of how I have to manage my rather severe ADHD is specifically crafting an environment that's as ADHD friendly as possible, much to my wife's dismay.
That means nothing can ever be hidden away or out of sight, otherwise I will immediately forget it exists. It means every bill must be on autopay, or it will not get paid. It also means living as minimally as possible, for me. Even something as "simple" to a neurotypical like washing dishes or doing laundry is a seemingly impossible mountain for me to climb. I solve that by owning as little as possible, and I also remove choices by, for example, just owning multiples of the same exact outfit.
The moment any sort of friction or context switching is involved in a task, I am going to fail, so I have to architect my life in a way that reduces friction as much as possible.
For work, that's mostly just luck. I'm a solo sysadmin for a non-tech company, and I work from home so I have a great deal of freedom. Outside of interruptions for help desk level tickets/emails (which suck and do throw off my flow), no one really oversees what I do and I set my own deadlines for the most part so I can work when and however it suits me to take advantage of days where I have good flow state.