Clockwise matrix rotation
APL (Dyalog Unicode), 7 bytes



⌽∘⍉⍣⎕⊢⎕


Try it online!

⎕ prompt for matrix expression from stdin

⊢ yield that

⎕ prompt for \$i\$ expression from stdin

⍣ do the following that many times

⍉ transpose

∘ and then

⌽ mirror