code: function getViewportDimensions(): ViewportDimensions {
    return {
      width: window.innerWidth || getViewportWidth(),
      height: window.innerHeight || getViewportHeight(),
    };
  }
docs: Gets the viewport dimensions including any scrollbars.