According to Microsoft’s documentation, the deprecated or retired Set-CsOnlineVoiceUser applies to Skype for Business Online.
In fact, it is equally applicable to Microsoft Teams where this cmdlet is now superseded by both the Set-CsPhoneNumberAssignment and Remove-CsPhoneNumberAssignment cmdlets. These can operate on either a user or a resource account (online application instance).