TypeScript server issues when changing branches

After switching between branches in a TypeScript project, 9/10 times the IDE will has TS server issues, and I am left with inline TS errors everywhere.

Restarting the TS server does not work, the only fix currently is to restart Cursor, which is very annoying.

Anyone else experiencing this?