[JSDOC2TS]: Migrate host

Bug: chromium:1158760
Change-Id: I86a4477d44617adac598f107755fbd3db49d7bf2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2718291
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
diff --git a/scripts/check_experiments.js b/scripts/check_experiments.js
index 2995628..d4a17f8 100644
--- a/scripts/check_experiments.js
+++ b/scripts/check_experiments.js
@@ -85,7 +85,7 @@
 }
 
 /**
- * Gets list of experiments registered in UserMetrics.js
+ * Gets list of experiments registered in UserMetrics.ts
  */
 function getUserMetricExperimentList(userMetricsFile) {
   const userMetricsAST = espree.parse(userMetricsFile, {ecmaVersion: 11, sourceType: 'module', range: true});
@@ -129,7 +129,7 @@
     console.log('Devtools Experiments have been added without corresponding histogram update!');
     console.log(missingTelemetry.join('\n'));
     console.log(
-        'Please ensure that the DevtoolsExperiments enum in UserMetrics.js is updated with the new experiment.');
+        'Please ensure that the DevtoolsExperiments enum in UserMetrics.ts is updated with the new experiment.');
     console.log(
         'Please ensure that a corresponding CL is openend against chromium.src/tools/metrics/histograms/enums.xml to update the DevtoolsExperiments enum');
     errorFound = true;
@@ -138,7 +138,7 @@
     console.log('Devtools Experiments that are no longer registered are still listed in the telemetry enum!');
     console.log(staleTelemetry.join('\n'));
     console.log(
-        'Please ensure that the DevtoolsExperiments enum in UserMetrics.js is updated to remove these stale experiments.');
+        'Please ensure that the DevtoolsExperiments enum in UserMetrics.ts is updated to remove these stale experiments.');
     errorFound = true;
   }
   if (errorFound) {
@@ -151,7 +151,7 @@
   const mainImplPath = path.resolve(__dirname, '..', 'front_end', 'main', 'MainImpl.js');
   const mainImplFile = fs.readFileSync(mainImplPath, 'utf-8');
 
-  const userMetricsPath = path.resolve(__dirname, '..', 'front_end', 'host', 'UserMetrics.js');
+  const userMetricsPath = path.resolve(__dirname, '..', 'front_end', 'host', 'UserMetrics.ts');
   const userMetricsFile = fs.readFileSync(userMetricsPath, 'utf-8');
 
   compareExperimentLists(getMainImplExperimentList(mainImplFile), getUserMetricExperimentList(userMetricsFile));