Just install Mapbox GL packages (or its open-source fork MapLibre GL) to your Angular project - npm i maplibre-gl, npm i --save-dev @types/geojson. Don't forget to add stylings, for example, to angular.json. Then all Mapbox objects and methods become available in typescript files - import { Map, NavigationControl } from 'maplibre-gl'.