To create stubs for your MicroPython board, you can use the micropython-stubber package. This package will connect to your board and create a set of stub files that you can use in your IDE to get code completion and type checking.
The recomnedation is:
- To create a folder from which to run the tool and store the various repos and files
- optionally to create a .venv virtual environment to run the tool in.