To explain why this happened and the role monaco editor plays, some details.
I enabled monaco just yesterday and the original code I hade was this (that perfectly works, but hey, I love clean code)
const nextDate = new Date(yyyy, mm, dd)
const dayDiff = Math.trunc((nextDate - today) / (1000*3600*24))
Monaco complained about it and I used the following monaco suggestion by hitting the enter key.
While it appears that way, the various cues and context should be noted. The intellisense both shows the purple box (meaning method) and the extended tip both states method and shows its usage with brackets.
Not certain I would want the brackets inserted for me - partly because in JavaScript, every function is an object (you can literally do nextDate.getTime.myvariable = 12; if you wish) and more reasonably - a common pattern in JS is to send a function as a parameter to another function (where you would not want brackets because that would call the function not pass it).
TBF, I totally understand your point but with Monaco (and VS and VScode) that's just how it works