It is tricky to close or control tabs but if you find a way with api i wanna see