Is your feature request related to a problem? Please describe.
Same problem as #14333 but in case of typescript-fetch generator: For modules Node.js requires file extensions for ESM imports (import * as runtime from "../runtime.js").
Is also related to #15034.
Describe the solution you'd like
Adding a new option importFileExtension in the same way as for typescript generator.