ts-add-module-exports is a simple CLI tool that automatically adds module.exports = to the end of TypeScript declaration (.d.ts) files. This resolves issues when importing declaration files in JavaScript projects, especially those using CommonJS module systems. This ensures wider compatibility and smoother integration of TypeScript declarations within mixed TypeScript/JavaScript codebases by explicitly defining the exported module. It streamlines the development process and reduces potential import errors.