The provisions of the Code of Civil Procedure relating to contempt (AS 09.50.010 - 09.50.060) shall apply in criminal actions.