If I want to be treated as a NRA for 2022, Should I file Form 8843 or 8840? Or should I file Forms 8840 AND 8843 together?

I was an F-1 student for the 2022 tax year. That was my seventh year, and I met the three-year substantial presence formula. However, I stayed in the US for less than 100 days in 2022, and I left the US for a permanent job abroad.