Disable tab switching circling

Is there any way to disable tab switching to cycle back to the first tab when it’s on the last tab and vice versa.

I use next_view and prev_view commands for switching.