const initialUntitledCount = Math.max(
        0,
        ...tabs
          .map(
            (i, tabItem) =>