Rename imports with the as keyword when names conflict or you prefer different names locally.
import { add as sum } from "./math.js";
import { add as concat } from "./string.js";
console.log(sum(1, 2)); // 3
console.log(concat("a", "b")); // "ab"
The exported name stays the same; only your local name changes.