#106305Update TypeScript to v5.8
Description
Update to the latest release which features granular checks for branches
in return expressions (good for us, as we’re not yet free of `any`) and
CommonJS module interop improvements (not that important for us, as
we’re already using ECMAScript Modules), also see:
https://typescriptlang.org/docs/handbook/release-notes/typescript-5-8