Error while importing file using import command in oclif cli node js

I have created a custom cli by oclif package.

in my run.ts file when I am importing file by import command

import actionCommand from "../package/action/src/commands/config/set/system.js";

when I hover mouse over “../package/action/src/commands/config/set/system.js” it showing me this error.

Cannot find module '../package/action/src/commands/config/set/system.js' or its corresponding type declarations.ts(2307)

but when same file I am importing by using require it working perfectly fine

const actionCommand = require("../package/action/src/commands/config/set/system.js");

here is my code can someone help me how can I access same file by using import

run.ts

import { Command } from "@oclif/command";

//import actionCommand from "../package/action/src/commands/config/set/system.js";
const actionCommand = require("../package/action/src/commands/config/set/system.js");

export default class Run extends Command {
  async run() {
    await actionCommand.run();
  }
}

Run.description = "run the file to test region action";