You can get a JS date object by using eval
var dateStr = "/Date(1666677654000)/";
var date = eval("new " + dateStr.replace(/\//g, ""));
console.log(date.toString())
result:

Update
Thanks to @JavaScript for providing another way.
var dateStr = "/Date(1666677654000)/";
var date = new Date(parseInt("/Date(1666677654000)/".substr(6)));
console.log(date.toString())
.substr(6)
is undefine length, so it return the string from 6th(start) to the end of the string.
.substr(start), start: The index of the first character to include in
the returned substring.
If length is omitted or undefined, substr()
extracts characters to
the end of the string.
Read .substr(start) to know more.