I have a very basic Google Workspace Add-on that uses the CalendarApp class to toggle the visabilty of a calendar when a button is pressed, using the setSelected()
setSelected()