TypeScript 6.0 will deprecate the module-keyword for namespaces sometime around Q4 2025.
dts-bundle-generator can aid the migration to the preferred namespace syntax by emitting the modern syntax in the generated DTS. This is something TypeScript, SWC, and Oxc already do.