src/language-js/print/type-annotation.js/printTupleType
function printTupleType(path, options, print) {
  const node = path.getValue();
  const typesField = node.type === "TSTupleType" ? "elementTypes" : "types";
  const types = node[typesField];
  const isNonEmptyTuple = isNonEmptyArray(types);
  const bracketsDelimiterLine = isNonEmptyTuple ? softline : "";
  return group([
    "[",
    indent([
      bracketsDelimiterLine,
      printArrayItems(path, options, typesField, print),
    ]),
    ifBreak(isNonEmptyTuple && shouldPrintComma(options, "all") ? "," : ""),
    printDanglingComments(path, options, /* sameIndent */ true),
    bracketsDelimiterLine,
    "]",
  ]);
}