How to use ESM externs?

I want to use Chalk 5 in Haxe but I can’t because it’s ESM. (that makes me a sad panda :frowning: )

For dynamic imports there is js.Lib.dynamicImport, for the rest see [js] ESM import syntax support · Issue #10615 · HaxeFoundation/haxe · GitHub (macro based solution in the discussion).