GhostWriter doesn't work on ESM JavaScript files (.mjs, .mts)

Problem description:
Currently ESM Michael Jackson files work fine with everything else… but GhostWriter doesn’t see them as javascript.

Expected behavior:
AI support.

Actual behavior:
GS is silent. Mts doesn’t even get syntax highlighting.

Steps to reproduce:
rename any javascirpt to .mts and remove legacy require statements.

Bug appears at this link: