Safari does have heavy restrictions on extensions but I still rarely see ads with 1Blocker (Safari extension) and NextDNS. So rarely it feels like never.
It’s also opened up somewhat in recent years. While I personally stick with Safari’s Content Blocking feature for performance reasons, 1Blocker and others do have a JavaScript-based option these days.
In my opinion, it's the only browser that nicely balances performance, privacy, and security.