Copying from #19710 (comment) by @danieldiekmeier:
In TypeScript 5.0, there (probably) will be a new module resolution option: --moduleResolution bundler: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#moduleresolution-bundler
I installed the TypeScript 5.0 Beta because I also want to use imports without extensions in Playwright. Sadly, it still does not seem to work. Are there plans to update Playwright to also support --moduleResolution bundler?