As of July 2018 GMail supports a native snooze function (https://gsuiteupdates.googleblog.com/2018/07/new-gmail-ga.html). Snooze, referring to "don't show me that message until a certain day". Previously one was able to implement such a feature only with apps-script.
My question is: Is there a way to use the new snooze function with apps-script? My goal is to create a script that automatically snoozes emails from certain people or keywords. I would strongly prefer using the new snooze function because the old hacky way would include moving the email to a certain folder, then bringing it back to the inbox, but by that the email doesn't show on top in the inbox anymore.