For me, the simplest method is to use the slice() function from the String JS class.
slice()
const str = 'This is a veeeeeery looooong striiiiing'; console.log(str.slice(0, 7) + "\u2026"); // Output: "This is..."