Based on the examples here, you have to call browser.close_tab(tab) . It works for me.
browser.close_tab(tab)