Here's the bare minimum if those buttons are standard button frames:
Lua Code:
local Masque=LibStub("Masque",true)
if Masque then
local group=Masque:Group("SamyTotemTimers")
group:AddButton(button1)
group:AddButton(button2)
end
You can browse the Masque wiki if you need more options:
https://github.com/SFX-WoW/Masque/wiki