Check out this new article Wizards of the Coast posted recently:

Ask Wizards: 03/24/2008

When a ninja expends a Ki use to become invisible for one round, does that invisibility immediately expire upon the ninja's first attack just like the spell would?