function getImportText(
  node,
  sourceCode,
  specifiers,
  kind,
) {
  const sourceString = sourceCode.getText(node.source);
  if (specifiers.length === 0) {
    return '';
  }

  const names = specifiers.map((s) => {
    if (s.imported.name === s.local.name) {
      return s.imported.name;
    }
    return `${s.imported.name} as ${s.local.name}`;
  });
  // insert a fresh top-level import
  return `import ${kind} {${names.join(', ')}} from ${sourceString};`;
}
@type {(node: import('estree').Node, sourceCode: import('eslint').SourceCode.SourceCode, specifiers: (ImportSpecifier | ImportNamespaceSpecifier)[], kind: 'type' | 'typeof') => string}