Updates the project to support TypeScript 6 and accounts for some of the breakages.
downgradeModule()