I noticed that if you use
paneSplitter.closeAllClosableTabs('center')
all tabs are closed, even those for which I added the callbackOnBeforeCloseContent function.
I use this function to confirm the closing of a tab which content has not yet been saved by the user.
Works fine when I click on the cross of a tab, but not with closeAllClosableTabs