In Window menu click Close All. All tabs will be closed and current text will be empty. Saving confirmation dialog will be showed when text is not saved. When nothing to close Close All menu item will be disabled