How to add a js script as type="module"
Yes, it is possible, with the attributes property.
my-library:
  version: 1.x
  js:
    js/App.js: { attributes: { type: module } }

See Adding attributes to script elements and JS properties.