sbstate shows that the switchbar button for that window is visible. If the switchbar is off, the button is obviously hidden (0).

tbstate does the same thing for the treebar buttons.

This is likely meant to work with the /window -w[n] @window command.

-genius_at_work