function createTSDoc(ruleId) {
	const ruleMeta = rules.get(ruleId).meta;
	const ruleDocs = ruleMeta.docs;
	const since = added[ruleId];
	const lines = [
		escapeForMultilineComment(paraphraseDescription(ruleDocs.description)),
		"",
	];

	if (ruleDocs.recommended) {
		lines.push(
			"@remarks",
			"Recommended by ESLint, the rule was enabled in `eslint:recommended`.",
			"",
		);
	}
	if (since) {
		lines.push(`@since ${since}`);
	}
	if (ruleMeta.deprecated) {
		const deprecationNotice = createDeprecationNotice(ruleMeta);

		lines.push(...deprecationNotice);
	}
	lines.push(`@see ${ruleDocs.url}`);
	const tsDoc = formatTSDoc(lines);

	return tsDoc;
}
Creates the TSDoc header comment for a rule.
@param {string} ruleId The rule name.
@returns {string} The TSDoc comment.