how to get all the opened tabs in safari app extension

hi gys,

I want to do a tab management in my app extension for safari, how should I be suposed to get references of all the opened tabs, since I only know how to get the actived tab so far.