No type definitions available when importing the latest PDF.js library pdf.mjs file to use in a TypeScript file Doing a simple import like this in Visual Studio 2022: