How to access the hass object in the frontend?

I am interested in making some changes to the frontend. I have followed the development guide and have a working dev environment in Visual Studio with dev containers for core and frontend, but there doesn’t seem to be a lot of documentation on how the framework is actually set up or how to make changes. For example here are some snippets from the documentation:

“The frontend passes a single hass object around.”
“In order to interact with hass in your code, make sure it is passed to your code correctly.”

But it doesn’t specify exactly how this is done, how do I get the hass object in the frontend code, like for example I am trying to make modification to the Gauge element (ha-gauge.ts). Does anybody have any examples?