Is there any automated tool that can add types? I have Playwright E2E tests – it seems reasonable that the type each variable is used as could be recorded and the code annotated with that.
That means that sprinkling any around your code isn't a great way to silence errors.