How to use plugins in Phaser with Typescript

This version has typescript define already.

Here is a snapshot of using typescript in ts file, it shows the type of rexUI member of scene.

And also running well in my desktop environment.

Sorry I have no idea why these error messages appeared.