The 7.0 Storybook documentation about addon-types (https://storybook.js.org/docs/7.0/react/addons/addon-types#tabs) includes a snippet to create tabs.
Besides the syntax error in the import :
import { addons, type types } from '@storybook/preview-api';
It sounds like @storybook/preview-api doesn't expose types used for type: types.TAB, right now.