I am doing it this way so the GUI classes are in a separate namespace
import * as GUI from '@babylonjs/gui'
private _setupGUI() {
const guiTexture = GUI.AdvancedDynamicTexture.CreateFullscreenUI('UI', true, this.scene)
this.gui = guiTexture
}
This works.