src/language-js/print/type-annotation.js/printTupleType
function printTupleType(path, options, print) {
  const n = path.getValue();
  const typesField = n.type === "TSTupleType" ? "elementTypes" : "types";
  const hasRest =
    n[typesField].length > 0 && getLast(n[typesField]).type === "TSRestType";
  return group(
    concat([
      "[",
      indent(
        concat([softline, printArrayItems(path, options, typesField, print)])
      ),
      ifBreak(shouldPrintComma(options, "all") && !hasRest ? "," : ""),
      printDanglingComments(path, options, /* sameIndent */ true),
      softline,
      "]",
    ])
  );
}