Migrating ts-loader to TypeScript 7.1 with AI

How I used AI to migrate ts-loader to TypeScript 7.1.