Importing highlight.js as a CDN resource in a typescript project?

The highlight.js project provides CDN assets that provide ES6 modules.

And I’m trying to import the hljs module like this in a typescript project (In order to get around this issue).

import hljs from 'https://unpkg.com/@highlightjs/[email protected]/es/highlight.min.js';

However doing the import like this produces the linting error:

Cannot find module ‘https://unpkg.com/@highlightjs/[email protected]/es/highlight.min.js’ or its corresponding type declarations.ts(2307)
Follow link (cmd + click)

Any ideas on how to get around this?