I see the new ATTiny416/816/817/1617 diverges somewhat from the older ATtiny and ATmega devices. I like to put the fuse, lock bits and device signature in my code so I can simply use the ELF file to program and not worry about settings. The code I used for the signature still works and I found this post:
for handling the fuses. Is there a simply method for the lock bits? It is not entirely clear in the datasheet on the lock bits. There is no FUSE.LOCKBIT in Atmel Studio 7.0 (1931 build) as described in the datasheet and it doesn't look like the same format as the older devices.