It took nine long months after leaving a stressful job in teaching. I walked out one day and never went back, thanks to a sick note.
For me, a big thing was avoiding other people (they were the ones who put a lot of the pressure on and, indeed, when I did see them, they'd be pressuring me to get another job ASAP, because that is what normal adults do). I spent a lot of time hiding away in the attic, where nobody could see what a shameful mess I'd become. I slept a lot, as I hadn't been able to do that properly for a long time. I got back in control with personal hygiene, as I'd virtually given up. I spent a lot of time watching documentaries and knitting, because my hands couldn't keep still, so I created a lot of baby cardigans for charity in that period! I still lived with family, so my mother kept cooking healthy meals for me, which took the stress out of what to eat, and didn't mind when I couldn't eat all of it. I tried anti-depressants, but they were making me ill, so I stopped taking them. On the bright side, slowly, I stopped having panic attacks, vomiting, paranoia, eczema, stress headaches and constantly solidified shoulder and back muscles.
Eventually, I started venturing out on my own a little bit. I would go and do things that didn't require interacting with people (who inevitably asked, "So, what job do you do?" and make me feel like a failure again), so I went swimming and to the pictures. I even learnt to drive on the motorway when I felt a bit braver, sticking to the quieter times and areas, and the left lane.
It gave me a lot of time to reassess my life. I remember lying there thinking, "I did everything that I was told to do, and it didn't make me very happy... so if I try to do what I wanted to do in the first place (i.e. college, not A-Levels and a degree and a job that I didn't want), perhaps I'll be happy". Thankfully, it worked out well in the end!
Good luck with your recovery, OP, and don't rush it because other people tell you to. Take all of the time that you need, because no amount of stress and money is worth your mental health!