Catalysis of the transfer of an acetyl group to a nitrogen atom on the acceptor molecule. [ GOC:ai ]