I cannot reproduce what you described. Are you sure you are running the latest Zotero beta with all plugins disabled?
Zotero should be able to restore all opened tabs after closing and reopening the main window.
Or, do you mean by the time the `onMainWindowLoad` is called, the tabs are not restored yet? That is expected. You'll need to manually wait for the tabs to open, instead of "add the tabs all by your self" (which is a wrong solution and will definitely duplicate these tabs).
Or, if you mean you created custom tabs, then they are not managed by Zotero and are not restored of course.