isPageVisibleOn this pageisPageVisibleDetect whether the document is visible. In a non browser environment, it always returns true.APIfunction isPageVisible(): boolean;Exampleimport { isPageVisible } from "@lilib/utils";if (isPageVisible()) { // Do something.}