Close All to the Right Macro (v9.0.1)

Can't you adapt the macro provided to you here:

MACRO: Close All Tabs to Left of Current Tab