How can I do the same for iOS 18?
I'm a little late to the party here, but deferring updates on iOS devices is easy. Enroll yourself in the iOS 18 public beta channel and iOS 26 will not appear. ...This is "safe" because they're not actually putting out iOS 18 beta builds anymore, but you still get the regular updates (18.7.1, 18.7.2, 18.7.3, ...).
...This likely will not work for much longer, as they'll stop offering iOS 18 builds for devices that are eligible for iOS 26. You will be able to stay on iOS 18 this way, but you'll stop getting security updates. However, you can use the same trick later this year when iOS 27 is released, if you want.
The same thing works with most other OS's (tvOS, iPadOS, ...). But you can't use the same "trick" to permanently defer macOS updates, at least not without disruption. Apple
does still put out beta builds for macOS 15 and 14 updates, so if you enroll in the macOS 15 public beta to avoid Tahoe, you'll be getting offered a new Sequoia beta/RC build every week or so.
I just noticed that the "profile" policies to defer macOS have been deprecated (as already mentioned in this thread), so I'm a little bit concerned about how this is going to look later this year when macOS 27 is released. I do like having the option to stay a release behind, and without being nagged about it.......