Linux Hint published a tutorial about installing and using TeamViewer on Ubuntu 22.04.
Install and Use TeamViewer on Ubuntu 22.04
To install and use TeamViewer on Ubuntu 22.04, first update the system repositories and then execute the “$ sudo apt install teamviewer -y” command in terminal.
Install and Use TeamViewer on Ubuntu 22.04